/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.payment.api.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zq
 * @date 2019/11/06
 */
@Data
public class RefundRequestDto {

    /**
     * tenantId
     */
    @ApiModelProperty(value = "租户id")
    @NotBlank(message = "租户id不能为空")
    private String tenantId;

    /**
     * orderId
     */
    @ApiModelProperty(value = "订单id")
    @NotBlank(message = "外部交易订单号不能为空")
    private String orderId;

    /**
     * routeKey
     */
    @ApiModelProperty(value = "路由键,路由键和回调url必须选一个")
    @NotBlank(message = "路由键不能为空")
    private String routeKey;

    /**
     * totalFee
     */
    @ApiModelProperty(value = "退款总金额")
    @NotNull(message = "退款金额不能为空")
    @Min(value = 1,message = "退款金额不能小于1分钱")
    private Integer totalFee;
}
